<template>
    <div>
      <site-header></site-header>
      <div class="content">
        <tree-menu :treeDataObj="treeDataObj" class="treeMenu"></tree-menu>
        <router-view></router-view>
      </div>
    </div>
  </template>
  
  <script>
  import siteHeader from "@/components/siteHeader";
  import treeMenu from "@/components/treeMenu";
  // 智能合约管理
  export default {
    name: "smartContracts",
    data() {
      return {
        treeDataObj: {
          title: "合约管理",
          data: [
            {
              label: "查看合约信息",
              children: [
                {
                  label: "合约1",
                  id: 2,
                  name:"hyInfo",
                },
                {
                  label: "合约2",
                  id: 3,
                  name:"hyInfo",
                },
                {
                  label: "合约3",
                  id: 4,
                  name:"hyInfo",
                }
              ]
            },
            {
              label: "修改智能合约",
              children: [
                {
                  label: "合约1",
                  id: 5,
                  name:"hyChange",
                },
                {
                  label: "合约2",
                  id: 6,
                  name:"hyChange",
                },
                {
                  label: "合约3",
                  id: 7,
                  name:"hyChange",
                }
              ]
            }
          ]            
        },
      };
    },
  
    components: {
      treeMenu,
      siteHeader,
    },
    mounted() {},
    methods: {},
    watch: {},
    beforeCreate: function () {
      document.getElementsByTagName("body")[0].className = "smartGrid";
    },
    beforeDestroy: function () {
      document.body.removeAttribute("class", "smartGrid");
    },
  };
  </script>
  
  <style scoped></style>
  